<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class Gem::Specification - bundler: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link"><a href="../Object.html">Object</a>
</div>

        
<div id="includes-section" class="nav-section">
  <h3>Included Modules</h3>

  <ul class="link-list">
    <li><a class="include" href="../Bundler/MatchMetadata.html">Bundler::MatchMetadata</a>
    <li><a class="include" href="../Bundler/MatchPlatform.html">Bundler::MatchPlatform</a>
  </ul>
</div>

        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-i-deleted_gem-3F">#deleted_gem?</a>
    <li ><a href="#method-i-dependencies_to_gemfile">#dependencies_to_gemfile</a>
    <li ><a href="#method-i-extension_dir">#extension_dir</a>
    <li ><a href="#method-i-extensions_dir">#extensions_dir</a>
    <li ><a href="#method-i-full_gem_path">#full_gem_path</a>
    <li ><a href="#method-i-gem_dir">#gem_dir</a>
    <li ><a href="#method-i-git_version">#git_version</a>
    <li ><a href="#method-i-groups">#groups</a>
    <li ><a href="#method-i-load_paths">#load_paths</a>
    <li ><a href="#method-i-loaded_from">#loaded_from</a>
    <li ><a href="#method-i-missing_extensions-3F">#missing_extensions?</a>
    <li ><a href="#method-i-nondevelopment_dependencies">#nondevelopment_dependencies</a>
    <li ><a href="#method-i-required_ruby_version-3D">#required_ruby_version=</a>
    <li ><a href="#method-i-rg_extension_dir">#rg_extension_dir</a>
    <li ><a href="#method-i-rg_full_gem_path">#rg_full_gem_path</a>
    <li ><a href="#method-i-rg_loaded_from">#rg_loaded_from</a>
    <li ><a href="#method-i-rg_missing_extensions-3F">#rg_missing_extensions?</a>
    <li ><a href="#method-i-source">#source</a>
    <li ><a href="#method-i-to_gemfile">#to_gemfile</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-Gem::Specification">
    <h1 id="class-Gem::Specification" class="class">
      class Gem::Specification
    </h1>

    <section class="description">
    
<p>On universal Rubies, resolve the “universal” arch to the real CPU arch, without changing the extension directory.</p>

    </section>

      <section id="5Buntitled-5D" class="documentation-section">


      <section class="constants-list">
      <header>
      <h3>Constants</h3>
      </header>
      <dl>
          <dt id="LATEST_RUBY_WITHOUT_PATCH_VERSIONS">LATEST_RUBY_WITHOUT_PATCH_VERSIONS
          <dd>
          <dt id="ORIGINAL_LOCAL_PLATFORM">ORIGINAL_LOCAL_PLATFORM
          <dd>
        </dl>
        </section>

        <section class="attribute-method-details" class="method-section">
        <header>
        <h3>Attributes</h3>
        </header>

          <div id="attribute-i-location" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">location</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              
              </div>
            </div>
          <div id="attribute-i-relative_loaded_from" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">relative_loaded_from</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              
              </div>
            </div>
          <div id="attribute-i-remote" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">remote</span><span
                class="attribute-access-type">[RW]</span>
            </div>

            <div class="method-description">
              
              </div>
            </div>
          <div id="attribute-i-source" class="method-detail">
            <div class="method-heading attribute-method-heading">
              <span class="method-name">source</span><span
                class="attribute-access-type">[W]</span>
            </div>

            <div class="method-description">
              
              </div>
            </div>
            </section>


                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-deleted_gem-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">deleted_gem?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="deleted_gem-3F-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 153</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">deleted_gem?</span>
  <span class="ruby-operator">!</span><span class="ruby-identifier">default_gem?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">full_gem_path</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-extension_dir" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">extension_dir</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="extension_dir-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 68</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">extension_dir</span>
  <span class="ruby-comment"># following instance variable is already used in original method</span>
  <span class="ruby-comment"># and that is the reason to prefix it with bundler_ and add rubocop exception</span>
  <span class="ruby-ivar">@bundler_extension_dir</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:extension_dir_name</span>) <span class="ruby-comment"># rubocop:disable Naming/MemoizedInstanceVariableName</span>
    <span class="ruby-identifier">unique_extension_dir</span> = [<span class="ruby-identifier">source</span>.<span class="ruby-identifier">extension_dir_name</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">full_gem_path</span>)].<span class="ruby-identifier">uniq</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;-&quot;</span>)
    <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">extensions_dir</span>, <span class="ruby-identifier">unique_extension_dir</span>))
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">rg_extension_dir</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>

                            <div class="aliases">
                              Also aliased as: <a href="Specification.html#method-i-rg_extension_dir">rg_extension_dir</a>
                            </div>

                          </div>

                  <div id="method-i-extensions_dir" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">extensions_dir</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="extensions_dir-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 353</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">extensions_dir</span>
  <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">default_ext_dir_for</span>(<span class="ruby-identifier">base_dir</span>) <span class="ruby-operator">||</span>
    <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">base_dir</span>, <span class="ruby-string">&quot;extensions&quot;</span>, <span class="ruby-constant">ORIGINAL_LOCAL_PLATFORM</span>,
              <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">extension_api_version</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-full_gem_path" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">full_gem_path</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="full_gem_path-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 47</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">full_gem_path</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:root</span>)
    <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">loaded_from</span>).<span class="ruby-identifier">dirname</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">source</span>.<span class="ruby-identifier">root</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">tap</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">untaint</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">RUBY_VERSION</span> <span class="ruby-operator">&lt;</span> <span class="ruby-string">&quot;2.7&quot;</span> }
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">rg_full_gem_path</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>

                            <div class="aliases">
                              Also aliased as: <a href="Specification.html#method-i-rg_full_gem_path">rg_full_gem_path</a>
                            </div>

                          </div>

                  <div id="method-i-gem_dir" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">gem_dir</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="gem_dir-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 98</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">gem_dir</span>
  <span class="ruby-identifier">full_gem_path</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-git_version" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">git_version</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="git_version-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 123</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">git_version</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">loaded_from</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Git</span>)
  <span class="ruby-node">&quot; #{source.revision[0..6]}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-groups" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">groups</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="groups-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 119</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">groups</span>
  <span class="ruby-ivar">@groups</span> <span class="ruby-operator">||=</span> []
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-load_paths" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">load_paths</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="load_paths-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 63</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">load_paths</span>
  <span class="ruby-identifier">full_require_paths</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-loaded_from" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">loaded_from</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="loaded_from-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 55</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">loaded_from</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">relative_loaded_from</span>
    <span class="ruby-identifier">source</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">relative_loaded_from</span>).<span class="ruby-identifier">to_s</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">rg_loaded_from</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>

                            <div class="aliases">
                              Also aliased as: <a href="Specification.html#method-i-rg_loaded_from">rg_loaded_from</a>
                            </div>

                          </div>

                  <div id="method-i-missing_extensions-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">missing_extensions?</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="missing_extensions-3F-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 80</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">missing_extensions?</span>
  <span class="ruby-comment"># When we use this methods with local gemspec, we don&#39;t handle</span>
  <span class="ruby-comment"># build status of extension correctly. So We need to find extension</span>
  <span class="ruby-comment"># files in require_paths.</span>
  <span class="ruby-comment"># TODO: Gem::Specification couldn&#39;t access extension name from extconf.rb</span>
  <span class="ruby-comment">#       so we find them with heuristic way. We should improve it.</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:root</span>)
    <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">raw_require_paths</span>.<span class="ruby-identifier">any?</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
      <span class="ruby-identifier">ext_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">full_gem_path</span>, <span class="ruby-identifier">path</span>)
      <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">ext_dir</span>, <span class="ruby-node">&quot;#{name}.#{RbConfig::CONFIG[&quot;DLEXT&quot;]}&quot;</span>)) <span class="ruby-operator">||</span>
      <span class="ruby-operator">!</span><span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">ext_dir</span>, <span class="ruby-identifier">name</span>, <span class="ruby-node">&quot;*.#{RbConfig::CONFIG[&quot;DLEXT&quot;]}&quot;</span>)).<span class="ruby-identifier">empty?</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">rg_missing_extensions?</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>

                            <div class="aliases">
                              Also aliased as: <a href="Specification.html#method-i-rg_missing_extensions-3F">rg_missing_extensions?</a>
                            </div>

                          </div>

                  <div id="method-i-nondevelopment_dependencies" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">nondevelopment_dependencies</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="nondevelopment_dependencies-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 149</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">nondevelopment_dependencies</span>
  <span class="ruby-identifier">dependencies</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">development_dependencies</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-required_ruby_version-3D" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">required_ruby_version=</span><span
                                class="method-args">(req)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="required_ruby_version-3D-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 106</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">required_ruby_version=</span>(<span class="ruby-identifier">req</span>)
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">rg_required_ruby_version</span> = <span class="ruby-identifier">req</span>

  <span class="ruby-ivar">@required_ruby_version</span>.<span class="ruby-identifier">requirements</span>.<span class="ruby-identifier">map!</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">op</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-constant">LATEST_RUBY_WITHOUT_PATCH_VERSIONS</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">release</span>.<span class="ruby-identifier">segments</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">4</span>
      [<span class="ruby-identifier">op</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;~&gt;&quot;</span> <span class="ruby-operator">?</span> <span class="ruby-string">&quot;=&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">op</span>, <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">v</span>.<span class="ruby-identifier">segments</span>.<span class="ruby-identifier">tap</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-value">3</span>) }.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;.&quot;</span>))]
    <span class="ruby-keyword">else</span>
      [<span class="ruby-identifier">op</span>, <span class="ruby-identifier">v</span>]
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-rg_extension_dir" class="method-detail method-alias">
                            <div class="method-heading">
                              <span class="method-name">rg_extension_dir</span><span
                                class="method-args">()</span>
                            </div>

                            <div class="method-description">
                              

                            </div>


                            <div class="aliases">
                              Alias for: <a href="Specification.html#method-i-extension_dir">extension_dir</a>
                            </div>
                          </div>

                  <div id="method-i-rg_full_gem_path" class="method-detail method-alias">
                            <div class="method-heading">
                              <span class="method-name">rg_full_gem_path</span><span
                                class="method-args">()</span>
                            </div>

                            <div class="method-description">
                              

                            </div>


                            <div class="aliases">
                              Alias for: <a href="Specification.html#method-i-full_gem_path">full_gem_path</a>
                            </div>
                          </div>

                  <div id="method-i-rg_loaded_from" class="method-detail method-alias">
                            <div class="method-heading">
                              <span class="method-name">rg_loaded_from</span><span
                                class="method-args">()</span>
                            </div>

                            <div class="method-description">
                              

                            </div>


                            <div class="aliases">
                              Alias for: <a href="Specification.html#method-i-loaded_from">loaded_from</a>
                            </div>
                          </div>

                  <div id="method-i-rg_missing_extensions-3F" class="method-detail method-alias">
                            <div class="method-heading">
                              <span class="method-name">rg_missing_extensions?</span><span
                                class="method-args">()</span>
                            </div>

                            <div class="method-description">
                              

                            </div>


                            <div class="aliases">
                              Alias for: <a href="Specification.html#method-i-missing_extensions-3F">missing_extensions?</a>
                            </div>
                          </div>

                  <div id="method-i-source" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">source</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="source-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 40</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">source</span>
  (<span class="ruby-keyword">defined?</span>(<span class="ruby-ivar">@source</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@source</span>) <span class="ruby-operator">||</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Installed</span>.<span class="ruby-identifier">new</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-to_gemfile" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">to_gemfile</span><span
                                class="method-args">(path = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="to_gemfile-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 128</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_gemfile</span>(<span class="ruby-identifier">path</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">gemfile</span> = <span class="ruby-constant">String</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;source &#39;https://rubygems.org&#39;\n&quot;</span>)
  <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">dependencies_to_gemfile</span>(<span class="ruby-identifier">nondevelopment_dependencies</span>)
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">development_dependencies</span>.<span class="ruby-identifier">empty?</span>
    <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</span>
    <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">dependencies_to_gemfile</span>(<span class="ruby-identifier">development_dependencies</span>, <span class="ruby-value">:development</span>)
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">gemfile</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="private-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Private Instance Methods</h3>
                </header>

                  <div id="method-i-dependencies_to_gemfile" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">dependencies_to_gemfile</span><span
                                class="method-args">(dependencies, group = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="dependencies_to_gemfile-source">
            <pre><span class="ruby-comment"># File bundler/rubygems_ext.rb, line 159</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">dependencies_to_gemfile</span>(<span class="ruby-identifier">dependencies</span>, <span class="ruby-identifier">group</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">gemfile</span> = <span class="ruby-constant">String</span>.<span class="ruby-identifier">new</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">any?</span>
    <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;group :#{group} do\n&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">group</span>
    <span class="ruby-identifier">dependencies</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dependency</span><span class="ruby-operator">|</span>
      <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;  &quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">group</span>
      <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%(gem &quot;#{dependency.name}&quot;)</span>
      <span class="ruby-identifier">req</span> = <span class="ruby-identifier">dependency</span>.<span class="ruby-identifier">requirements_list</span>.<span class="ruby-identifier">first</span>
      <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">%(, &quot;#{req}&quot;)</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">req</span>
      <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</span>
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">gemfile</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;end\n&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">group</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">gemfile</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

